/**
 * @file DenySubscriptionHandler.cs
 * @author Zane Mayo
 * @date 26/5/2009
 */

using System;

namespace MxitAPI {
	
	
	public class DenySubscriptionHandler : Handler {
		
		private static log4net.ILog log = log4net.LogManager.GetLogger( System.Reflection.MethodBase.GetCurrentMethod().DeclaringType );
		
		private int contactId;
		// remove, debugging only
		public string contactAddress;
		
		public DenySubscriptionHandler() : base( typeof( DenySubscriptionProtocolMessage ) )  {
		}
		
		public DenySubscriptionHandler( int contactId ) :this() {
			this.contactId = contactId;
		}

        public DenySubscriptionHandler( string contactAddress ) : this() {
            this.contactAddress = contactAddress;
        }
		
		public override ProtocolMessage CreateRequestProtocolMessage() {
			DenySubscriptionProtocolMessage protocolMessage = new DenySubscriptionProtocolMessage();
			protocolMessage.ContactAddress = contactAddress;
			
			return protocolMessage;
		}

		
	}
}